package org.footito.android.ui.activity;

import greendroid.app.GDApplication;

import org.acra.ACRA;
import org.acra.annotation.ReportsCrashes;
import org.footito.android.R;
import org.footito.android.tools.DevParameters;
import org.footito.android.tools.Tools;

import android.content.Intent;
import android.net.Uri;

@ReportsCrashes(formKey = "dGh5T1JyUHpsMjBILW5mdjNPV0hJU2c6MQ")
public class FootitoApplication extends GDApplication {

	@Override
	public void onCreate() {
		if (DevParameters.isACRAEnable())
			ACRA.init(this);
		
		Tools.checkFilesFolder();
		super.onCreate();
	}


    @Override
    public Class<?> getHomeActivityClass() {
        return Timeline.class;
    }
    
    @Override
    public Intent getMainApplicationIntent() {
        return new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.website_url)));
    }
}
